<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="dao.*" %>
     <jsp:useBean id="dao" class="dao.InfoImpl" scope="request"/>
     <jsp:include page="editinfo.jsp"></jsp:include>
     <%@ page import="java.util.*,java.text.*"%>
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.div1{
margin-left:10%;
}
td{
width:120px;
background:#ffcc66 ;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查询结果</title>
</head>
<body>
<div class="div1">
	<table >
		<tr><td>员工号</td><td>姓名</td><td>性别</td><td>身份证号</td></tr>
		<%request.setCharacterEncoding("utf-8"); 
		String id=request.getParameter("id");
		String name=request.getParameter("name");
		String section=request.getParameter("section");
		//out.print(name+section);
		List list=dao.find(id,name, section);
		Info info=null;
		for(int i=0;i<list.size();i++){
			info=(Info)list.get(i);
			%>
			<tr>
		<td><a href="servlet/DoEditInfo?id=<%=info.getId() %>" ><%=info.getId()%></a></td>
		<td><%=info.getName() %></td>
		<td><%=info.getSex() %></td>
		<td><%=info.getIcard() %></td>
	</tr>
		<%} %>
		
	</table>
</div>
</body>
</html>